﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Main.master" AutoEventWireup="true" CodeFile="ScheduleView.aspx.cs" Inherits="Pages_ScheduleView"
		 Title="Просмотр рейса" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
	<link rel="stylesheet" type="text/css" media="screen" href="../styles/EntityEditStyle.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="../styles/EntityViewStyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<a href='<%= ResolveUrl("~/Pages/Schedule.aspx") %>'>Вернуться к расписанию</a>
	<p>
		<b><asp:Label runat="server" ID="lbRouteName" /></b>
	</p>
	<asp:Repeater runat="server" ID="rpt1">
		<HeaderTemplate>
			<table class="miniTableView">
				<tr>
					<th>Остановка</th>
					<th>Расстояние (км)</th>
					<th>Время в пути (ч)</th>
					<th>Место посадки</th>
				</tr>
		</HeaderTemplate>
		<ItemTemplate>
				<tr>
					<td><%# Eval("station.Name")%></td>
					<td>
						<asp:Label runat="server" ID="lbDistance" Text='<%# Eval("Distance")%>' />
					</td>
					<td>
						<asp:label runat="server" ID="lbTimeDistance" Text='<%# Eval("TimeDistance")%>' />
					</td>
					<td>
						<asp:Label runat="server" ID="lbLandingPlace" Text='<%# Eval("LandingPlace") %>' />
					</td>
				</tr>
		</ItemTemplate>
		<FooterTemplate>
			</table>
		</FooterTemplate>
	</asp:Repeater>
</asp:Content>

